package com.gec.wiki.service;

import com.gec.wiki.pojo.Doc;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gec.wiki.pojo.req.DocQueryReq;
import com.gec.wiki.pojo.resp.DocQueryResp;
import com.gec.wiki.pojo.resp.PageResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author CGH
* @description 针对表【doc】的数据库操作Service
* @createDate 2022-12-22 09:09:32
*/
public interface DocService extends IService<Doc> {
    PageResp<DocQueryResp> getDocListByPage(DocQueryReq req);

    List<DocQueryResp> allList(DocQueryReq req);

    int increaseViewCount(int id);

    int increaseVoteCount(int id);

    int updateEbookInfo();
}
